rows=8
for i in range(rows):
    spaces= " " *(rows - i -1)
    stars= "*" * (2*i-1)

    print(f"{spaces}{stars}".rstrip())